package cn.iocoder.yudao.module.erp.controller.admin.accountinfo.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import cn.iocoder.yudao.module.erp.controller.admin.common.BaseCost;
import cn.iocoder.yudao.module.erp.controller.admin.costinfo.vo.CostInfoRespVO;
import cn.iocoder.yudao.module.erp.controller.admin.planinfo.vo.PlanInfoRespVO;
import cn.iocoder.yudao.module.erp.dal.dataobject.planinfo.PlanInfoDO;
import cn.iocoder.yudao.module.erp.enums.DictTypeConstants;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 对账单信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class AccountInfoRespVO {

    private String id;

    @Schema(description = "对账类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "对账类型",converter = DictConvert.class)
    @DictFormat(DictTypeConstants.LNG_BUY_OR_SALE)
    private String type;

    @Schema(description = "客户", requiredMode = Schema.RequiredMode.REQUIRED, example = "5400")
    private Long customerId;

    @ExcelProperty("客户")
    private String customerName;

    @Schema(description = "对账气量", example = "1366")
    @ExcelProperty("对账气量")
    private BigDecimal accountGasCount;

    @Schema(description = "对账金额", example = "1974")
    @ExcelProperty("气量金额")
    private BigDecimal accountMoneyCount;


    @ExcelProperty("其他费用")
    private BigDecimal costAmount;

    @ExcelProperty("总费用")
    private BigDecimal allAmount;


    @Schema(description = "对账开始时间")
    @ExcelProperty(value = "对账开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;


    @Schema(description = "对账截止时间")
    @ExcelProperty("对账截止时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;

    @ExcelProperty("备注")
    private String remark;

    private List<PlanInfoRespVO> planList;


    private List<CostInfoRespVO> costList;

    private String fileUrl;

    private String chooseName;

    private List<BaseCost> baseList;


}